<template>
  <div>
    <el-dialog v-bind="$attrs" :before-close="beforeClose">
      <h3>{{ formData.name }}</h3>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" size="mini" @click="beforeClose">
          关闭
        </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    beforeClose: {
      type: Function,
      default: () => {}
    },
    formData: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style lang="scss" scoped></style>
